package com.etoak.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.etoak.domain.Book;
import com.etoak.mapping.BookMapping;
import com.etoak.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Description : 图书Service实现
 * Author : buf
 * Date : 2018/9/6 16:04
 **/
@Service
public class BookServiceImpl implements BookService {

    @Autowired
    private BookMapping bookMapping;

    public void insertBook(Book book) {
        bookMapping.insertBook(book);
        System.out.println("新增图书...");
    }
}
